package com.ruoyi.cmdb.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;

/**
 * 项目对象 tb_project
 * 
 * @author ruoyi
 * @date 2023-01-26
 */
public class Project extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private String id;

    /** name */
    @Excel(name = "name")
    private String name;

    /** 项目简称 */
    @Excel(name = "项目简称")
    private String simple;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 父级项目 */
    @Excel(name = "父级项目")
    private String parentProject;

    /** 节点名称 */
    @Excel(name = "节点名称")
    private String nodeName;

    /** 开发人员 */
    @Excel(name = "开发人员")
    private String programmer;

    /** 仓库类型（0svn 1git） */
    @Excel(name = "仓库类型", readConverterExp = "0=svn,1=git")
    private String repositoryType;

    /** 仓库地址 */
    @Excel(name = "仓库地址")
    private String repository;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setSimple(String simple) 
    {
        this.simple = simple;
    }

    public String getSimple() 
    {
        return simple;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setParentProject(String parentProject) 
    {
        this.parentProject = parentProject;
    }

    public String getParentProject() 
    {
        return parentProject;
    }
    public void setNodeName(String nodeName) 
    {
        this.nodeName = nodeName;
    }

    public String getNodeName() 
    {
        return nodeName;
    }
    public void setProgrammer(String programmer) 
    {
        this.programmer = programmer;
    }

    public String getProgrammer() 
    {
        return programmer;
    }
    public void setRepositoryType(String repositoryType) 
    {
        this.repositoryType = repositoryType;
    }

    public String getRepositoryType() 
    {
        return repositoryType;
    }
    public void setRepository(String repository) 
    {
        this.repository = repository;
    }

    public String getRepository() 
    {
        return repository;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("simple", getSimple())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("status", getStatus())
            .append("parentProject", getParentProject())
            .append("nodeName", getNodeName())
            .append("programmer", getProgrammer())
            .append("repositoryType", getRepositoryType())
            .append("repository", getRepository())
            .toString();
    }
}
